﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/manager/manager.master" AutoEventWireup="true" CodeFile="Details.aspx.cs" Inherits="manager_websites_Details" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>General</h2>
<table>
    <tr><td>Title:</td><td><asp:TextBox runat="server" ID="txtTitle" /></td></tr>
    <tr><td>Website URL:</td><td><asp:TextBox runat="server" ID="txtURL" /></td></tr>
    <tr><td>Host Headers:</td><td><asp:TextBox runat="server" ID="txtHostHeaders" TextMode="MultiLine" Rows="5" Columns="20" /></td></tr>
    <tr><td>System Name</td><td><asp:TextBox runat="server" ID="txtSystemName" /></td></tr>
    <tr><td colspan="2"><asp:Button runat="server" ID="btnSaveWebsite" Text="Save" OnClick="btnSaveWebsite_Click" /></td></tr>
</table>
<h2>Options</h2>
<div>
    Name:<asp:TextBox runat="server" ID="txtNewOptionTitle" />&nbsp;Value:<asp:TextBox runat="server" ID="txtNewOptionValue" />&nbsp;<asp:Button runat="server" ID="btnAdd" Text="Add" OnClick="btnAdd_OnClick" />
</div>
<asp:GridView id="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="odsOptions" DataKeyNames="ID">
    <Columns>
        <asp:BoundField DataField="OptionTitle" HeaderText="Option" SortExpression="OptionTitle" />
        <asp:BoundField DataField="OptionValue" HeaderText="Value" SortExpression="OptionValue" />
        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
    </Columns>
</asp:GridView> 
<asp:ObjectDataSource id="odsOptions" runat="server" InsertMethod="Insert" TypeName="TanashCMS.Business.WebsiteOption" DeleteMethod="Delete" SelectMethod="List" OldValuesParameterFormatString="original_{0}" DataObjectTypeName="TanashCMS.Business.WebsiteOption" UpdateMethod="Update" OnInserting="odsOptions_Inserting">
    <SelectParameters>
        <asp:QueryStringParameter QueryStringField="wid" Type="Int32" Name="WebsiteID" />
    </SelectParameters>
</asp:ObjectDataSource>
</asp:Content>

